import { artCate } from '../api/art'
export default {
  state () {
    return {
      artlist: []
    }
  },
  mutations: {
    addartlist (state, arr) {
      state.artlist = arr
    }
  },
  actions: {
    async artGet ({ commit }) {
      const { data } = await artCate()
      commit('addartlist', data.data)
    }
  },
  getters: {},
  namespaced: true
}
